package com.exam.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author weirdor
 * @since 2017-06-16
 */
public class Permission extends Model<Permission> {

    private static final long serialVersionUID = 1L;

    /**
     * 权限id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 权限名
     */
	private String permissionName;
    /**
     * 权限标识,程序中判断使用,如"user:create"
     */
	private Integer roleld;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPermissionName() {
		return permissionName;
	}

	public void setPermissionName(String permissionName) {
		this.permissionName = permissionName;
	}

	public Integer getRoleld() {
		return roleld;
	}

	public void setRoleld(Integer roleld) {
		this.roleld = roleld;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
